package com.graduate.bssp.dao;

import com.graduate.base.entity.PageInfo;
import com.graduate.bssp.entity.Tvshow;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
  * 电视剧 Mapper 接口
 * </p>
 *
 * @author yongqiangyao
 * @since 2018-02-05
 */
@Repository("tvshowMapper")
public interface TvshowMapper extends BaseMapper<Tvshow> {
    Integer selectCountList();
    List<Tvshow> selectTvshowList(PageInfo<Tvshow> pageInfo);

    boolean insertTvshow(Tvshow tvshow);

    Tvshow findById(int id);
    Integer updateFilm(Tvshow tvshow);
    Integer deleteTvshowById(Integer id);
    //Integer selectTvshowCountList();
    Integer selectTvshowCountList(PageInfo<Tvshow> pageInfo);
}